<template>
  <div class="page-container">
    <div class="background-wrapper">
      <!-- 背景图片容器 -->
    </div>

    <div class="btn-container">
      <div class="btnpupor" @click="gotaping()">进入他评对话</div>
    </div>
    <!-- 底部标签栏 -->
  </div>
</template>

<script>
export default {
  name: "H5BackgroundPage",
  mounted() {
    console.log("页面加载完成");
    if (!localStorage.getItem("userId")) {
      this.$router.push("/minsheng/login");
    }
  },
  methods: {
    setActiveTab(tab) {
      // 跳转到指定页面
      this.$router.push({ name: tab });
    },

    gotaping() {
      this.$router.push("/minsheng/taping");
    },
  },
};
</script>

<style scoped>
.page-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #eef7fe 0%, #becdee 100%);
}

.background-wrapper {
  width: 100%;
  height: 100%;

  background-image: url("https://lesson.iapeap.com/DRM/IMG/IMG20251119175754%20%281%29.jpg");
  background-size: contain; /* 确保图片完整显示 */
  background-repeat: no-repeat;
  background-position: center 0; /* 图片居中 */
  background-color: transparent;

  /* 添加阴影效果，增强视觉层次 */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);

  /* 添加圆角使过渡更自然 */
  border-radius: 8px;
}

/* 底部标签栏 */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background-color: rgba(255, 255, 255, 0.95);
  display: flex;
  border-top: 1px solid #e8e8e8;
  z-index: 10;
  padding: 0 10px;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #8e8e93;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 8px;
  margin: 5px;
}

.tab-item.active {
  color: #8e7cc3;
  background-color: rgba(142, 124, 195, 0.08);
}

.tab-icon {
  font-size: 20px;
  margin-bottom: 4px;
  transition: all 0.2s ease;
}

.tab-item.active .tab-icon {
  transform: translateY(-2px);
}
.btn-container {
  position: absolute;
  bottom: 12%;
}
.btn-container .btnpupor {
  background-color: #a293b8;
  margin: 1rem;
  padding: 5px 30px;
  color: #fff;
  border-radius: 20px;
}
</style>
